const express = require( "express" );
const router = express.Router();


const stuModel = require( '../db/models/stuModel' );

router.post( '/add', async ( req, res ) => { 
    let postData = req.body;
    // console.log(postData);
    let data = await stuModel.store( postData );
    res.status( 201 ).send( data );
} );

module.exports = router;
